import os
from langchain_community.llms import QianfanLLMEndpoint
from langchain_core.prompts import ChatPromptTemplate

os.environ["QIANFAN_AK"] = "7ZITkqmufR2g6MSLQUqsYAXB"
os.environ["QIANFAN_SK"] = "n2YLOoakGri5LfsK8Fxsax86tdeLEfpm"

llm = QianfanLLMEndpoint(temperature=0.9)
text = "对于一家生产彩色袜子的公司来说，什么是一个好的公司名称?"
print(llm.invoke(text))


